package org.jeecg.modules.demo.ddyht.mapper;

import org.jeecg.modules.demo.ddyht.entity.DdygPici;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Description: 批次信息
 * @Author: jeecg-boot
 * @Date:   2025-02-23
 * @Version: V1.0
 */
public interface DdygPiciMapper extends BaseMapper<DdygPici> {

    List<DdygPici> getBycompany(String username);

    List<DdygPici> getBycompanySale(String username, String number);

    List<DdygPici> getBycompanyStock(String username, String number);

    List<DdygPici> getByall(String companyId, String number, String model);

    List<DdygPici> getByalltwo(String companyId, String model, String orstate);

    List<DdygPici> getByallId(String username, String id);

    void deleteByall(String companyId, String id, String orstate);

    List<DdygPici> getByModel(String companyId, String model, String orstate);

    DdygPici getByModelId(String onlyid, String companyId, String model, String number);

    DdygPici getByOnlyId(String onlyid, String companyId);
}
